home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #2 / Amiga Plus CD - 2004 - No. 02.iso / AmigaPlus / Tools / Development / AmigaTalk / prelude / SMakeFile < prev    next >
Encoding:
Makefile  |  2004-01-31  |  9.2 KB  |  249 lines

  1. # ###############################################################
  2. #
  3. #  MakeFile for the standard prelude & related .p files. 
  4. # ###############################################################
  5. #
  6. PARSE  = AmigaTalk:c/Parse -hex
  7. #
  8. OUTDIR = AmigaTalk:Prelude/
  9. #
  10. INDIR  = AmigaTalk:General/
  11. #
  12. NPDIR  = AmigaTalk:General/NewParser/
  13. #
  14. JN     = C:Join
  15. #
  16. PFILES = $(OUTDIR)Class.p $(OUTDIR)Object.p $(OUTDIR)String.p\
  17.  $(OUTDIR)LArray.p $(OUTDIR)Nil.p $(OUTDIR)Array.p $(OUTDIR)Boolean.p\
  18.  $(OUTDIR)True.p $(OUTDIR)False.p $(OUTDIR)Block.p $(OUTDIR)Symbol.p\
  19.  $(OUTDIR)Magnitude.p $(OUTDIR)Number.p $(OUTDIR)Integer.p $(OUTDIR)Char.p\
  20.  $(OUTDIR)Float.p $(OUTDIR)Radian.p $(OUTDIR)Point.p $(OUTDIR)Random.p\
  21.  $(OUTDIR)Collection.p $(OUTDIR)Bag.p $(OUTDIR)Set.p $(OUTDIR)KCollection.p\
  22.  $(OUTDIR)Dictionary.p $(OUTDIR)SCollection.p $(OUTDIR)Interval.p\
  23.  $(OUTDIR)Form.p $(OUTDIR)Pen.p $(OUTDIR)List.p $(OUTDIR)ACollection.p\
  24.  $(OUTDIR)File.p $(OUTDIR)ByteArray.p $(OUTDIR)Semaphore.p\
  25.  $(OUTDIR)Process.p $(OUTDIR)AmigaTalk.p $(OUTDIR)Link.p $(OUTDIR)LongInteger.p\
  26.  $(OUTDIR)AspectAdaptor.p $(OUTDIR)BlockValue.p $(OUTDIR)ComputedValue.p\
  27.  $(OUTDIR)DependencyTransformer.p $(OUTDIR)IndexedAdaptor.p $(OUTDIR)Model.p\
  28.  $(OUTDIR)PluggableAdaptor.p $(OUTDIR)ProtocolAdaptor.p $(OUTDIR)SlotAdaptor.p\
  29.  $(OUTDIR)ValueHolder.p $(OUTDIR)ValueModel.p $(OUTDIR)DependentsCollection.p \
  30.  $(OUTDIR)BufferedValueHolder.p
  31. #
  32. PARSEFILES = $(OUTDIR)Parse.p $(OUTDIR)ParseNodes.p $(OUTDIR)List.p\
  33.  $(OUTDIR)Encoder.p $(OUTDIR)Method.p 
  34. #
  35. # ------ Now for the Rules: -------------------------------------
  36. #
  37. #$(OUTDIR)larray.p
  38. #
  39. standard: $(PFILES) 
  40.   $(JN) $(OUTDIR)acollection.p $(OUTDIR)array.p $(OUTDIR)class.p $(OUTDIR)object.p $(OUTDIR)string.p $(OUTDIR)nil.p AS RAM:s1
  41.   $(JN) $(OUTDIR)boolean.p $(OUTDIR)true.p $(OUTDIR)false.p $(OUTDIR)block.p $(OUTDIR)symbol.p $(OUTDIR)magnitude.p AS RAM:s2
  42.   $(JN) RAM:s1 RAM:s2 AS RAM:s7 
  43.   $(JN) RAM:s7 $(OUTDIR)number.p $(OUTDIR)integer.p $(OUTDIR)char.p $(OUTDIR)float.p  AS RAM:s3
  44.   $(JN) RAM:s3 $(OUTDIR)radian.p $(OUTDIR)point.p $(OUTDIR)random.p $(OUTDIR)collection.p $(OUTDIR)bag.p $(OUTDIR)set.p AS RAM:s4
  45.   $(JN) $(OUTDIR)kcollection.p $(OUTDIR)dictionary.p $(OUTDIR)scollection.p AS RAM:s5
  46.   $(JN) RAM:s4 RAM:s5 $(OUTDIR)interval.p $(OUTDIR)form.p $(OUTDIR)pen.p $(OUTDIR)list.p AS RAM:s6
  47.   $(JN) $(OUTDIR)file.p $(OUTDIR)bytearray.p $(OUTDIR)semaphore.p AS RAM:s7
  48.   $(JN) RAM:s6 RAM:s7 $(OUTDIR)process.p $(OUTDIR)AmigaTalk.p $(OUTDIR)Link.p $(OUTDIR)LongInteger.p AS RAM:s8
  49.   $(JN) RAM:s8 $(OUTDIR)AspectAdaptor.p $(OUTDIR)BlockValue.p $(OUTDIR)ComputedValue.p AS RAM:s3
  50.   $(JN) $(OUTDIR)DependencyTransformer.p $(OUTDIR)IndexedAdaptor.p $(OUTDIR)Model.p AS RAM:s4
  51.   $(JN) $(OUTDIR)PluggableAdaptor.p $(OUTDIR)ProtocolAdaptor.p $(OUTDIR)SlotAdaptor.p AS RAM:s5
  52.   $(JN) $(OUTDIR)DependentsCollection.p $(OUTDIR)ValueHolder.p $(OUTDIR)BufferedValueHolder.p $(OUTDIR)ValueModel.p AS RAM:s6
  53.   $(JN) RAM:s3 RAM:s4 RAM:s5 RAM:s6 AS $(OUTDIR)standard
  54. #
  55. #  $(JN) $(OUTDIR)Parse.p $(OUTDIR)ParseNodes.p $(OUTDIR)Encoder.p $(OUTDIR)Method.p AS RAM:s9 
  56. #  $(JN) RAM:s8 RAM:s9 AS RAM:final 
  57. #
  58. #  COPY RAM:s8 TO $(OUTDIR)standard
  59.   DELETE RAM:s1 RAM:s2 RAM:s3 RAM:s4 RAM:s5 RAM:s6 RAM:s7 RAM:s8 RAM:final
  60. #
  61. # DELETE RAM:s9
  62. #
  63. newParser: $(PARSEFILES) 
  64.   $(JN) $(OUTDIR)Parse.p $(OUTDIR)ParseNodes.p $(OUTDIR)List.p $(OUTDIR)Encoder.p $(OUTDIR)Method.p AS RAM:s1
  65.   COPY RAM:s1 TO $(OUTDIR)newParser
  66.   DELETE RAM:s1
  67. #
  68. # ------ Model & Subclasses Rules: ------------------------------
  69. #
  70. $(OUTDIR)AspectAdaptor.p : $(INDIR)AspectAdaptor.st
  71.   $(PARSE)  $(INDIR)AspectAdaptor.st >$(OUTDIR)AspectAdaptor.p
  72. #
  73. $(OUTDIR)BlockValue.p  : $(INDIR)BlockValue.st
  74.   $(PARSE)  $(INDIR)BlockValue.st >$(OUTDIR)BlockValue.p
  75. #
  76. $(OUTDIR)ComputedValue.p : $(INDIR)ComputedValue.st
  77.   $(PARSE)  $(INDIR)ComputedValue.st >$(OUTDIR)ComputedValue.p
  78. #
  79. $(OUTDIR)DependencyTransformer.p  : $(INDIR)DependencyTransformer.st
  80.   $(PARSE)  $(INDIR)DependencyTransformer.st >$(OUTDIR)DependencyTransformer.p
  81. #
  82. $(OUTDIR)DependentsCollection.p  : $(INDIR)DependentsCollection.st
  83.   $(PARSE)  $(INDIR)DependentsCollection.st >$(OUTDIR)DependentsCollection.p
  84. #
  85. $(OUTDIR)IndexedAdaptor.p  : $(INDIR)IndexedAdaptor.st
  86.   $(PARSE)  $(INDIR)IndexedAdaptor.st >$(OUTDIR)IndexedAdaptor.p
  87. #
  88. $(OUTDIR)Model.p  : $(INDIR)Model.st
  89.   $(PARSE)  $(INDIR)Model.st >$(OUTDIR)Model.p
  90. #
  91. $(OUTDIR)PluggableAdaptor.p  : $(INDIR)PluggableAdaptor.st
  92.   $(PARSE)  $(INDIR)PluggableAdaptor.st >$(OUTDIR)PluggableAdaptor.p
  93. #
  94. $(OUTDIR)ProtocolAdaptor.p  : $(INDIR)ProtocolAdaptor.st
  95.   $(PARSE)  $(INDIR)ProtocolAdaptor.st >$(OUTDIR)ProtocolAdaptor.p
  96. #
  97. $(OUTDIR)SlotAdaptor.p : $(INDIR)SlotAdaptor.st
  98.   $(PARSE)  $(INDIR)SlotAdaptor.st >$(OUTDIR)SlotAdaptor.p
  99. #
  100. $(OUTDIR)ValueHolder.p  : $(INDIR)ValueHolder.st
  101.   $(PARSE)  $(INDIR)ValueHolder.st >$(OUTDIR)ValueHolder.p
  102. #
  103. $(OUTDIR)BufferedValueHolder.p  : $(INDIR)BufferedValueHolder.st
  104.   $(PARSE)  $(INDIR)BufferedValueHolder.st >$(OUTDIR)BufferedValueHolder.p
  105. #
  106. $(OUTDIR)ValueModel.p : $(INDIR)ValueModel.st
  107.   $(PARSE)  $(INDIR)ValueModel.st >$(OUTDIR)ValueModel.p
  108. #
  109. $(OUTDIR)Controller.p : $(INDIR)Controller.st
  110.   $(PARSE)  $(INDIR)Controller.st >$(OUTDIR)Controller.p
  111. #
  112. $(OUTDIR)GUIController.p : $(INDIR)GUIController.st
  113.   $(PARSE)  $(INDIR)GUIController.st >$(OUTDIR)GUIController.p
  114. #
  115. #
  116. # ------ Parser Rules: ------------------------------------------
  117. #
  118. $(OUTDIR)Encoder.p: $(NPDIR)Encoder.st
  119.   $(PARSE)  $(NPDIR)Encoder.st    >$(NPDIR)Encoder.p
  120. #
  121. $(OUTDIR)Parse.p: $(NPDIR)Parse.st
  122.   $(PARSE)  $(NPDIR)Parse.st      >$(NPDIR)Parse.p
  123. #
  124. $(OUTDIR)ParseNodes.p: $(NPDIR)ParseNodes.st
  125.   $(PARSE)  $(NPDIR)ParseNodes.st >$(NPDIR)ParseNodes.p
  126. #
  127. $(OUTDIR)Method.p: $(NPDIR)Method.st
  128.   $(PARSE)  $(NPDIR)Method.st     >$(NPDIR)Method.p
  129. #
  130. # ------ Standard class Rules: ----------------------------------------
  131. #
  132. $(OUTDIR)Link.p: $(INDIR)Link.st
  133.   $(PARSE)  $(INDIR)Link.st >$(OUTDIR)Link.p
  134. #
  135. $(OUTDIR)LongInteger.p: $(INDIR)LongInteger.st
  136.   $(PARSE)  $(INDIR)LongInteger.st >$(OUTDIR)LongInteger.p
  137. #
  138. $(OUTDIR)Nil.p: $(INDIR)UndefinedObject.st
  139.   $(PARSE)  $(INDIR)UndefinedObject.st >$(OUTDIR)nil.p
  140. #
  141. $(OUTDIR)KCollection.p: $(INDIR)KeyedCollection.st
  142.   $(PARSE)  $(INDIR)KeyedCollection.st >$(OUTDIR)KCollection.p
  143. #
  144. $(OUTDIR)SCollection.p: $(INDIR)SequenceableCollection.st
  145.   $(PARSE)  $(INDIR)SequenceableCollection.st >$(OUTDIR)SCollection.p
  146. #
  147. $(OUTDIR)ACollection.p: $(INDIR)ArrayedCollection.st
  148.   $(PARSE)  $(INDIR)ArrayedCollection.st >$(OUTDIR)ACollection.p
  149. #
  150. $(OUTDIR)Interval.p: $(INDIR)Interval.st
  151.   $(PARSE)  $(INDIR)Interval.st   >$(OUTDIR)Interval.p
  152. #
  153. $(OUTDIR)Pen.p: $(INDIR)Pen.st
  154.   $(PARSE)  $(INDIR)Pen.st        >$(OUTDIR)Pen.p
  155. #
  156. $(OUTDIR)List.p: $(INDIR)List.st
  157.   $(PARSE)  $(INDIR)List.st       >$(OUTDIR)List.p
  158. #
  159. $(OUTDIR)ByteArray.p: $(INDIR)ByteArray.st
  160.   $(PARSE)  $(INDIR)ByteArray.st  >$(OUTDIR)ByteArray.p
  161. #
  162. $(OUTDIR)Semaphore.p: $(INDIR)Semaphore.st
  163.   $(PARSE)  $(INDIR)Semaphore.st  >$(OUTDIR)Semaphore.p
  164. #
  165. $(OUTDIR)Class.p: $(INDIR)Class.st
  166.   $(PARSE)  $(INDIR)Class.st      >$(OUTDIR)Class.p
  167. #
  168. $(OUTDIR)Object.p: $(INDIR)Object.st
  169.   $(PARSE)  $(INDIR)Object.st     >$(OUTDIR)Object.p
  170. #
  171. $(OUTDIR)String.p: $(INDIR)String.st
  172.   $(PARSE)  $(INDIR)String.st     >$(OUTDIR)String.p
  173. #
  174. $(OUTDIR)LArray.p: $(INDIR)LArray.st
  175.   $(PARSE)  $(INDIR)LArray.st     >$(OUTDIR)LArray.p
  176. #
  177. $(OUTDIR)Array.p: $(INDIR)Array.st
  178.   $(PARSE)  $(INDIR)Array.st      >$(OUTDIR)Array.p
  179. #
  180. $(OUTDIR)Boolean.p: $(INDIR)Boolean.st
  181.   $(PARSE)  $(INDIR)Boolean.st    >$(OUTDIR)Boolean.p
  182. #
  183. $(OUTDIR)True.p: $(INDIR)True.st
  184.   $(PARSE)  $(INDIR)True.st       >$(OUTDIR)True.p
  185. #
  186. $(OUTDIR)False.p: $(INDIR)False.st
  187.   $(PARSE)  $(INDIR)False.st      >$(OUTDIR)False.p
  188. #
  189. $(OUTDIR)Block.p: $(INDIR)Block.st
  190.   $(PARSE)  $(INDIR)Block.st      >$(OUTDIR)Block.p
  191. #
  192. $(OUTDIR)Symbol.p: $(INDIR)Symbol.st
  193.   $(PARSE)  $(INDIR)Symbol.st     >$(OUTDIR)Symbol.p
  194. #
  195. $(OUTDIR)Magnitude.p: $(INDIR)Magnitude.st
  196.   $(PARSE)  $(INDIR)Magnitude.st  >$(OUTDIR)Magnitude.p
  197. #
  198. $(OUTDIR)Number.p: $(INDIR)Number.st
  199.   $(PARSE)  $(INDIR)Number.st     >$(OUTDIR)Number.p
  200. #
  201. $(OUTDIR)Integer.p: $(INDIR)Integer.st
  202.   $(PARSE)  $(INDIR)Integer.st    >$(OUTDIR)Integer.p
  203. #
  204. $(OUTDIR)Char.p: $(INDIR)Char.st
  205.   $(PARSE)  $(INDIR)Char.st       >$(OUTDIR)Char.p
  206. #
  207. $(OUTDIR)Float.p: $(INDIR)Float.st
  208.   $(PARSE)  $(INDIR)Float.st      >$(OUTDIR)Float.p
  209. #
  210. $(OUTDIR)Radian.p: $(INDIR)Radian.st
  211.   $(PARSE)  $(INDIR)Radian.st     >$(OUTDIR)Radian.p
  212. #
  213. $(OUTDIR)Point.p: $(INDIR)Point.st
  214.   $(PARSE)  $(INDIR)Point.st      >$(OUTDIR)Point.p
  215. #
  216. $(OUTDIR)Random.p: $(INDIR)Random.st
  217.   $(PARSE)  $(INDIR)Random.st     >$(OUTDIR)Random.p
  218. #
  219. $(OUTDIR)Collection.p: $(INDIR)Collection.st
  220.   $(PARSE)  $(INDIR)Collection.st >$(OUTDIR)Collection.p
  221. #
  222. $(OUTDIR)Bag.p: $(INDIR)Bag.st
  223.   $(PARSE)  $(INDIR)Bag.st        >$(OUTDIR)Bag.p
  224. #
  225. $(OUTDIR)Set.p: $(INDIR)Set.st
  226.   $(PARSE)  $(INDIR)Set.st        >$(OUTDIR)Set.p
  227. #
  228. $(OUTDIR)Dictionary.p: $(INDIR)Dictionary.st
  229.   $(PARSE)  $(INDIR)Dictionary.st >$(OUTDIR)Dictionary.p
  230. #
  231. $(OUTDIR)Form.p: $(INDIR)Form.st
  232.   $(PARSE)  $(INDIR)Form.st       >$(OUTDIR)Form.p
  233. #
  234. $(OUTDIR)File.p: $(INDIR)File.st
  235.   $(PARSE)  $(INDIR)File.st       >$(OUTDIR)File.p
  236. #
  237. $(OUTDIR)Process.p: $(INDIR)Process.st
  238.   $(PARSE)  $(INDIR)Process.st    >$(OUTDIR)Process.p
  239. #
  240. $(OUTDIR)AmigaTalk.p: $(INDIR)AmigaTalk.st
  241.   $(PARSE)  $(INDIR)AmigaTalk.st  >$(OUTDIR)AmigaTalk.p
  242. #
  243. #
  244. # ------ Default for the rest of the rules: ---------------------
  245. #
  246. #.st.p:
  247. #  $(PARSE) $(INDIR)$>.st >$@  # Why don't this work all the time??
  248. #
  249.